<template>
    <div class="comp-invite">
        <Header title="邀请用户注册" class="head"></Header>
        <div class="content">
            <span>您的邀请二维码</span>
            
            <img src="/public/img/person/15011412396.png" alt="">
            <div class="footer">
                
                <div class="mu-button-wrapper">
                    <a href="http://localhost/public/img/person/15011412396.png"><span>保存二维码到手机</span></a>
                </div>
                <div class="mu-button-wrapper" @click="copy"><span>复制分享链接地址</span></div>
            </div>
        </div>
    </div>
</template>


<script>
import Header from '../../components/Header'

export default {
    components : { Header },
    //data 
    data() {
        return {
            
        }
    },
    // 自定义方法
    methods: {
        copy() {
            console.log(window)
            
            var clipBoardContent = location.href;
            clipboardData.setData("html", "剪贴内容");

            console.log(clipBoardContent)
        }
    }
}
</script>

<style lang="scss">
.comp-invite {
    .content {
        width: 100%;
        height: 327px;
        padding-top: 40px;
        display: flex;
        flex-flow: column;
        align-items: center;
        span {
            font-size: 14px;
        }
        img {
            width: 220px;
            height: 220px;
            margin-bottom: 5px;
        }
        .footer {
            width: 316px;
            height: 41px;
            display: flex;
            justify-content: space-around;
            div {
                width: 144px;
                height: 36px;
                background-color: blue;
                font-size: 14px;
                color: #fff;
                line-height: 31px;
                border-radius: 2px;
                a {
                    color: #fff;
                }
                span {
                    position: relative;
                    top: -2px;
                }
            }
        }
    }

    
}
</style>